home *** CD-ROM | disk | FTP | other *** search
- on SETUPBOARD
- global GRIDH, GRIDV, GRIDY, GRIDN, PUSHON, NB, NBB, CT, PL1, PL2, PL3, CTT, PL4, PL5, PL6, PC
- set PUSHON to 0
- set PL1 to "1001010100"
- set PL2 to "0110110011"
- set PL3 to "1010101010"
- set PL4 to "0101001101"
- set PL5 to "1001011010"
- set PL6 to "0101010101"
- repeat with N = 1 to 14
- set CTT to N
- if N = 1 then
- set CT to random(6)
- end if
- set CT to CT + 1
- if CT >= 7 then
- set CT to 1
- end if
- if N = 1 then
- set CT to 3
- end if
- if N = 14 then
- set CT to 6
- end if
- if CT = 1 then
- repeat with NN = 1 to 10
- if char NN of PL1 = "1" then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, CTT)
- setAt(GRIDV, CTT, 1)
- updateStage()
- end if
- set CTT to CTT + 14
- end repeat
- end if
- if CT = 2 then
- repeat with NN = 1 to 10
- if char NN of PL2 = "1" then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, CTT)
- setAt(GRIDV, CTT, 1)
- updateStage()
- end if
- set CTT to CTT + 14
- end repeat
- end if
- if CT = 3 then
- repeat with NN = 1 to 10
- if char NN of PL3 = "1" then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, CTT)
- setAt(GRIDV, CTT, 1)
- updateStage()
- end if
- set CTT to CTT + 14
- end repeat
- end if
- if CT = 4 then
- repeat with NN = 1 to 10
- if char NN of PL4 = "1" then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, CTT)
- setAt(GRIDV, CTT, 1)
- updateStage()
- end if
- set CTT to CTT + 14
- end repeat
- end if
- if CT = 5 then
- repeat with NN = 1 to 10
- if char NN of PL5 = "1" then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, CTT)
- setAt(GRIDV, CTT, 1)
- updateStage()
- end if
- set CTT to CTT + 14
- end repeat
- end if
- if CT = 6 then
- repeat with NN = 1 to 10
- if char NN of PL6 = "1" then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, CTT)
- setAt(GRIDV, CTT, 1)
- updateStage()
- end if
- set CTT to CTT + 14
- end repeat
- end if
- if (N = 1) or (N = 13) then
- set CT to random(4) + 1
- end if
- end repeat
- set the locH of sprite 30 to -50
- set the locV of sprite 30 to -50
- set CT to 0
- set the castNum of sprite 10 to 12
- repeat with N = 1 to 7
- set CT to 0
- repeat while CT = 0
- set PC to random(140)
- if (getAt(GRIDV, PC) = 0) and (getAt(GRIDH, PC) < getAt(GRIDH, 4)) then
- set CT to 1
- set the locH of sprite 10 to getAt(GRIDH, PC)
- set the locV of sprite 10 to getAt(GRIDY, PC)
- setAt(GRIDV, PC, 2)
- updateStage()
- end if
- end repeat
- end repeat
- set CT to 0
- set the castNum of sprite 29 to 4
- repeat with N = 1 to 7
- set CT to 0
- repeat while CT = 0
- set PC to random(140)
- if (getAt(GRIDV, PC) = 0) and (getAt(GRIDH, PC) > getAt(GRIDH, 11)) then
- set CT to 1
- set the locH of sprite 29 to getAt(GRIDH, PC)
- set the locV of sprite 29 to getAt(GRIDY, PC)
- setAt(GRIDV, PC, 3)
- updateStage()
- end if
- end repeat
- end repeat
- set the locH of sprite 29 to -50
- set the locV of sprite 29 to -50
- set the locH of sprite 10 to -50
- set the locV of sprite 10 to -50
- set the locH of sprite 45 to 30
- set the locV of sprite 45 to 391
- set the locH of sprite 46 to 571
- set the locV of sprite 46 to 391
- updateStage()
- end
-